import request from '@/utils/request'

//未登录时获取随机推荐菜品
export const getRandomDishAPI = (page, pageSize) => {
  return request({
    url: '/user/dish/list',
    method: 'GET',
    data: {
      page,
      pageSize
    }
  })
}

//登录后获取随机推荐菜品
export const getRandomDishLoginAPI = (userId, page, pageSize, reset = false) => {
  return request({
    url: '/user/dish/recommend',
    method: 'GET',
    data: {
      userId,
      page,
      pageSize,
      reset
    }
  })
}